<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:23:"themes/index/index.html";i:1528179422;s:26:"themes//header/header.html";i:1528179422;s:24:"themes//right/right.html";i:1528179422;s:26:"themes//footer/footer.html";i:1528179422;}*/ ?>
﻿<!DOCTYPE html>
<html lang="zh-cn">
<head>		
	<title><?php echo $site_config['site_title']; ?></title>
	<meta name="keywords" content="<?php echo $site_config['seo_keyword']; ?>"/>
	<meta name="description" content="<?php echo $site_config['seo_description']; ?>"/>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<link rel="stylesheet" href="__public__css/lunbo.css" />
	<link rel="stylesheet" href="__public__css/pintuer.css">
	<link rel="stylesheet" href="__public__css/my.css">
	<link rel="stylesheet" href="__public__css/page_css.css">	
	<link rel="stylesheet" href="__public__css/gotop.css" />
	<script src="__public__js/jquery.js"></script>
	<script src="__public__js/pintuer.js"></script>
	<script src="__public__js/respond.js"></script>
	<script src="__public__layer/layer.js"></script>
	<script src="__public__js/gotop.js" ></script>
	<script src="__public__js/jquery.touchSlider.js"></script>
</head>
	<body>
       <script type="text/javascript">
$(document).ready(function(){

	$(".main_visual").hover(function(){
		$("#btn_prev,#btn_next").fadeIn()
	},function(){
		$("#btn_prev,#btn_next").fadeOut()
	});
	
	$dragBln = false;
	
	$(".main_image").touchSlider({
		flexible : true,
		speed : 600,//轮播播放速度，单位是毫秒
		btn_prev : $("#btn_prev"),
		btn_next : $("#btn_next"),
		paging : $(".flicking_con a"),
		counter : function (e){
			$(".flicking_con a").removeClass("on").eq(e.current-1).addClass("on");
		}
	});
	
	$(".main_image").bind("mousedown", function() {
		$dragBln = false;
	});
	
	$(".main_image").bind("dragstart", function() {
		$dragBln = true;
	});
	
	$(".main_image a").click(function(){
		if($dragBln) {
			return false;
		}
	});
	
	timer = setInterval(function(){
		$("#btn_next").click();
	}, 4000); //轮播间隔时间，单位是毫秒
	
	$(".main_visual").hover(function(){
		clearInterval(timer);
	},function(){
		timer = setInterval(function(){
			$("#btn_next").click();
		},4000);
	});
	
	$(".main_image").bind("touchstart",function(){
		clearInterval(timer);
	}).bind("touchend", function(){
		timer = setInterval(function(){
			$("#btn_next").click();
		}, 4000);
	});
	
});
</script>
		<div style="display: none;" id="rocket-to-top">
    <div style="opacity:0;display: block;" class="level-2"></div>
    <div class="level-3"></div>
</div>
<div class="demo-nav padding-big-top fixed">
	<div class="container padding-top padding-bottom">
		<div class="line">
			<div class="xl12 xs3 xm3 xb2">
				<button class="button icon-navicon float-right" data-target="#header-demo"></button>
				<a href="/"><h1 style="font-weight: bold;color: #0A8EE2">MaTie  Blog</h1></a>
			</div>
			<div class=" xl12 xs9 xm9 xb10 nav-navicon" id="header-demo">
				<div class="xs8 xm6 xb8 padding-small">
					<ul class="nav nav-menu nav-inline nav-big" >
						 <li<?php if(strtoupper(strlen($currenturl)) == '1'): ?> class="l_active"<?php endif; ?>><a href="/">首页</a></li>
						 <?php if(is_array($nav) || $nav instanceof \think\Collection): if( count($nav)==0 ) : echo "" ;else: foreach($nav as $key=>$vo): ?>
						 <li <?php if(strstr($currenturl,$vo['link']))echo' class="l_active"' ?>>
						     <a href="/<?php echo $vo['link']; ?>"><?php echo $vo['name']; ?></a>
						 </li>
						  <?php endforeach; endif; else: echo "" ;endif; ?>
			
					</ul>
				</div>
				<div class="xs4 xm3 xb4">
					   <form class="layui-form layui-form-pane" action="/index/so/index.html" method="get">

						<div class="input-group padding-little-top">
							<input type="text" class="input border-main" name="key" size="30" placeholder="请输入关键词" />
							<span class="addbtn"><button class="button bg-main icon-search layui-btn"></button></span>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>
 
		<div class="container">
			<div class="">
				<ul class="bread">

				</ul>
			</div>
			<div class="line-big">
				<div class="xl12 xm8">
					<div class="line-small">
						<div class="xs12">
						<!----------------------------------------------------------------->
						 <?php if(is_array($article_list) || $article_list instanceof \think\Collection): if( count($article_list)==0 ) : echo "暂时没有数据" ;else: foreach($article_list as $key=>$vo): ?>
							<div class="clearfix articlebox">
									<div class="detail_a">
									    
									<?php echo $vo['tag']==1 ? '<span class="tag bg-dot">原创</span>' : '<span class="tag bg-green">转载</span>'; ?>&nbsp;&nbsp;
									<a href="<?php echo url('article/index','id='.$vo['id']); ?>" style="font-size: 16px;"><?php echo $vo['title']; ?></a>
	                                <?php echo $vo['is_good']==1 ? '<div class="a_tuijian"><img src="__public__images/tuijian.gif" style="width:70px" /></div>' : ''; ?>
									</div>
									<div class="article">

										<ul class="icourse-course">
											 <li>
									                <a href="<?php echo url('article/index','id='.$vo['id']); ?>">
											            <div class="icourse-img">

																<?php if(strtoupper($vo['thumb']) != ''): ?><img src="<?php echo $vo['thumb']; ?>" onerror="this.src='__public__images/default_thumb.png'" class="img" title="" width="100%" height="200px" />
<?php else: ?><img src="__public__images/default_thumb.png" width="100%" height="200px"/>
<?php endif; ?>
															
											            </div>
									       
									                </a>
									           </li>										

										</ul>

										<div class="remark">
										<?php echo $vo['introduction']; ?>					</div>
									</div>
	
									<div class="write">
										<span class="icon-paper-plane"></span>&nbsp;<?php echo $vo['publish_time']; ?> &nbsp;&nbsp;作者：<?php echo $vo['author']; ?> &nbsp;&nbsp;分类：&nbsp;<?php echo $getcategoryName[$vo['cid']]; ?>&nbsp;<span class="hidden-xs">&nbsp;&nbsp;点击：&nbsp;<?php echo $vo['reading']; ?>&nbsp;</span>
									</div>
									<div class="look-all">
										<a href="<?php echo url('article/index','id='.$vo['id']); ?>" class="button border-blue" role="button">查看全部</a>
									</div>
								</div>
								<br />
							    <?php endforeach; endif; else: echo "暂时没有数据" ;endif; ?>	
												
							<br />							
						</div>						
						<hr />
						<div class="pages" style=" text-align: right;">
							 <?php echo $article_list->render(); ?>						</div>
					</div>
					<br />
					<br />
					<br />
				</div>				
				
<div class="xl12 xm4">
	<h2 class="bg-main text-white padding">随机文章</h2>
	<div class="padding-big bg">
		<ul class="list-media list-underline">
		
		<?php if(is_array($randarticle) || $randarticle instanceof \think\Collection): if( count($randarticle)==0 ) : echo "" ;else: foreach($randarticle as $i=>$vo): ?>
			         <li>					
					<div class="media media-x img-small">						
						<a class="float-left" href="<?php echo url('article/index','id='.$vo['id']); ?>"><?php if(strtoupper($vo['thumb']) != ''): ?><img src="<?php echo $vo['thumb']; ?>" onerror="this.src='__public__images/default_thumb.png'"  class="radius" />
<?php else: ?><img src="__public__images/default_thumb.png" class="radius"/>
<?php endif; ?></a>						
						<div class="media-body">
							<strong> <?php echo $vo['title']; ?></strong><?php echo $vo['introduction']; ?>
							<a class="button button-little border-red swing-hover" href="<?php echo url('article/index','id='.$vo['id']); ?>">查看详情</a>
						</div>
					</div>						
				</li>
				<?php endforeach; endif; else: echo "" ;endif; ?>	
				</ul>
	</div>
	<hr />
	<div>
		<h3><span class="icon-wrench"></span> 标签云</h3>

		<h4>
			<div class="tag-ul">

				<?php if(is_array($tags) || $tags instanceof \think\Collection): if( count($tags)==0 ) : echo "" ;else: foreach($tags as $i=>$vo): ?>
				<a class="button button-little <?php echo rand_color($vo['tagname']); ?> shake-hover" href="/index/so/index.html?key=<?php echo $vo['tagname']; ?>"><?php echo $vo['tagname']; ?></a>
				<?php endforeach; endif; else: echo "" ;endif; ?>
			</div>
		</h4>
	</div>
	<hr />
	<br />
	<div class="tab border-main" data-toggle="hover" style="height: 470px;">
		<div class="tab-head">

			<ul class="tab-nav">
				<li class="active"><a href="#tab-start2">最新留言</a> </li>
				<li><a href="#tab-css2">最多点击</a> </li>
			</ul>
		</div>
		<div class="tab-body ">
			<div class="tab-panel active" id="tab-start2">				
				尚无数据
												
			</div>
			<div class="tab-panel" id="tab-css2" >
				   <?php if(is_array($htorticle) || $htorticle instanceof \think\Collection): if( count($htorticle)==0 ) : echo "" ;else: foreach($htorticle as $key=>$vo): ?>
				    <li style="margin-bottom:8px"><h4><a href="<?php echo url('article/index','id='.$vo['id']); ?>"><span class="icon-leaf"></span> <?php echo $vo['title']; ?></a></h4></li>
			      <?php endforeach; endif; else: echo "" ;endif; ?>	
		       <li style="margin-bottom:8px"></li>
			   </div>
		</div>
	</div>
	<div>
		<h3><span class="icon-retweet"></span> 友情链接</h3>
		<br />
		<div class="links">
		    <?php if(is_array($links) || $links instanceof \think\Collection): if( count($links)==0 ) : echo "" ;else: foreach($links as $key=>$vo): ?>
			<a href="<?php echo $vo['linkurl']; ?>" target="_blank" class="button border-blue" role="button"><?php echo $vo['linkname']; ?></a>&nbsp;
			 <?php endforeach; endif; else: echo "" ;endif; ?>	
			</div>
	</div>
	<br />
	<hr />
	<br />
	
</div>

	<script>
	
		$(function(){
		    $('#download').click(function(){
		    	var node ="<?php echo session('user_nickname'); ?>";

		    	if( node =='' || node == null){ 
					layer.alert("请您使用QQ登录后下载!",{icon: 5,}); 
					return false;
				}

				 return true;
		    });		    
		})

	</script> 	
			</div>
		</div>	

<div class="container-layout bg-black">
    <div class="border-top padding-top foot">
        <div class="text-center">
            <ul class="nav nav-inline">

            </ul>
			
        </div>
        <div class="text-center height-big" >
            Copyright © 2018  <?php echo $site_config['site_copyright']; ?>  & 版权所有&nbsp;&nbsp;&nbsp;<a href="http://www.miitbeian.gov.cn/" class="foot-my" target="_blank"><?php echo $site_config['site_icp']; ?></a>
       <a class="foot-my" href="http://www.cnzz.com/stat/website.php?web_id=1264398044" target="_blank" title="站长统计"><img src="http://icon.cnzz.com/img/pic.gif" vspace="0" hspace="0" border="0"></a>
        </div>
    </div>
</div> 		

	</body>
</html>